package com.example.administrator.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.GridLayout;
import android.widget.LinearLayout;
import android.widget.Toast;

public class MainActivity extends Activity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        LinearLayout coche = (LinearLayout) findViewById(R.id.lo_coach);
        coche.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent goCoach = new Intent(v.getContext(), CoachActivity.class);
                v.getContext().startActivity(goCoach);
            }
        });

        LinearLayout classbook = (LinearLayout) findViewById(R.id.lo_class_book);
        classbook.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent goCurribulum = new Intent(v.getContext(), CurriculumActivity.class);
                v.getContext().startActivity(goCurribulum);
            }
        });

        LinearLayout my = (LinearLayout) findViewById(R.id.lo_my);
        my.setOnClickListener(new View.OnClickListener() {
                                  @Override
                                  public void onClick(View v) {
                                      Intent goMy = new Intent(v.getContext(), MyActivity.class);
                                      v.getContext().startActivity(goMy);
                                  }
                              }
        );
    }

    @Override
    public void onClick(View v) {

    }
}
